| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import { Injectable } from "@angular/core"; |
||
| 8 | |||
| 9 | @Injectable() |
||
| 10 | export class TwitterAuth extends AbstractAuth implements IAuthProvider { |
||
| 11 | public readonly providerKey = "twitter"; |
||
| 12 | public readonly defaultOptions = {}; |
||
| 13 | |||
| 14 | public constructor( |
||
| 15 | angularFireAuth: AngularFireAuth, |
||
| 16 | platform: Platform, |
||
| 17 | config: UniFirebaseLoginConfigProvider, |
||
| 18 | ) { |
||
| 19 | super(angularFireAuth, platform, config); |
||
| 20 | } |
||
| 21 | |||
| 22 | public async signInNative(options: any): Promise<auth.UserCredential | null> { |
||
| 23 | throw new Error("Method not implemented!"); |
||
| 24 | } |
||
| 25 | |||
| 26 | protected getBrowserSignInProvider() { |
||
| 27 | return new auth.TwitterAuthProvider(); |
||
| 28 | } |
||
| 30 |